package cn.hbu.zlfw.system.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 *@ClassName:AdminUser.java
 *@Description:  超级管理员实体
 *@Author:lxt<839376636@qq.com>
 *@Date:2017年10月6日下午6:50:52
 *@Version:1.1.0
 */
@Entity
@Table(name = "t_admin_user")
public class AdminUser implements Serializable{
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "id", length = 32)
	@GeneratedValue(generator = "UUID_KEY")
	@GenericGenerator(name = "UUID_KEY", strategy = "uuid.hex")
	private String id;
	
	@Column(name="userName",length=100)
	private String userName;
	
	@Column(name="password",length=100)
	private String password;
	
	@Column(name="userType",length=20)
	private Integer userType;
	
	@Column(name="school",length=80)
	private String school;	//单位
	
	@Column(name="department",length=80)
	private String department;	//部门
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="createTime")
	private Date createTime;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="updateTime")
	private Date updateTime;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Override
	public String toString() {
		return "AdminUser [id=" + id + ", userName=" + userName + ", password=" + password + ", userType=" + userType
				+ ", school=" + school + ", department=" + department + ", createTime=" + createTime + ", updateTime="
				+ updateTime + "]";
	}

	
	
	
	
}
